#!/usr/bin/env python
#-*- encoding:UTF-8 -*-

# $Id$

import wx
from wx.lib.wordwrap import wordwrap

import os

class AboutDlg():
    
    def __init__(self, parent, basepath, id=wx.ID_ANY):
    
        parent.panel = wx.Panel(parent)
        
        info = wx.AboutDialogInfo()
        
        
        iconfile = basepath + "\pysds-logo.png"
        
        if os.path.exists(iconfile):
            info.SetIcon(wx.Icon(iconfile, wx.BITMAP_TYPE_PNG))
        
        
        info.Name = "PySDS"
        info.Version = "0.1 Beta"
        info.Copyright = "(C) 2008 BSD License"
        info.Description = wordwrap(
                                "A SDS/ADaM meta-data management system written in python+wxpython.",
                                350, wx.ClientDC(parent.panel))
        
        #info.WebSite = ("http://www.googlecode.com/p/pysds/", "PySDS")
        info.WebSite = ("http://www.googlecode.com/p/pysds/")
        info.Developers = ["John Wang jowang@grs-cro.com"]
        
        info.License = wordwrap("This software is licensed under BSD License.", 500,
                                wx.ClientDC(parent.panel))
        
        
        # Show the wx.AboutBox
        wx.AboutBox(info)
        